<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" src="/oa/Public/js/jquery.js"></script>
<script type="text/javascript" src="/oa/Public/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/oa/Public/css/global.css" />
<link rel="stylesheet" type="text/css" href="/oa/Public/css/form.css" />
</head>
<body>
<div class="list">
<table class="stripe" cellspacing="0">
    <thead>
        <tr>
            <th style="min-width: 30px;"></th>
            <th width="70%">名称/文号</th>
            <th width="28%">操作</th>
        </tr>
    </thead>
 
    <tbody>
   	  <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
            <td><?php if($vo['prcs_flag'] == 1): ?><img src='/oa/Public/images/email_close.gif' alt='未接收' align='absmiddle'>
		      <?php else: ?>
		      	<img src='/oa/Public/images/email_open.gif' alt='已接收' align='absmiddle'><?php endif; ?></td>
            <td><?php echo ($vo['work_name']); ?></td>
            <td>
            <a href="javascript:void(0)" onclick="work(<?php echo ($vo['work_id']); ?>,<?php echo ($vo['type_id']); ?>,<?php echo ($vo['proc_id']); ?>,<?php echo ($vo['prcs_id']); ?>)" >办理</a>
	  		<?php if($vo['prcs_flag'] != 1): ?>|<a href="javascript:void(0)" onclick="next(<?php echo ($vo['work_id']); ?>,<?php echo ($vo['type_id']); ?>,<?php echo ($vo['proc_id']); ?>,<?php echo ($vo['prcs_id']); ?>)" title="转交下一步骤"> 转交下步</a><?php endif; ?>
	  		</td>
        </tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
    </tbody>
</table>
</div>
</body>
<script language="javascript">
$(document).ready(function(){  
	$(".stripe tr").mouseover(function(){    
	  $(this).addClass("over");}).mouseout(function(){   
			$(this).removeClass("over");}) 
  	$(".stripe tr:even").addClass("alt");
});  
/*
function del(id){
	if (confirm("真的要删除吗？")){
		$.get("/oa/index.php/Resources/delete?id="+id,function(result){
			location.reload();
		});
	}else{
		return false;
	}
}
*/
function work(work_id, type_id, proc_id, prcs_id){
	window.location.href="/oa/index.php/WorkFlow/work_form_index?work_id="+work_id+"&type_id="+type_id+"&proc_id="+proc_id+"&prcs_id="+prcs_id;
}
function next(work_id, type_id, proc_id, prcs_id){
	window.location.href="/oa/index.php/WorkFlow/work_next?work_id="+work_id+"&type_id="+type_id+"&proc_id="+proc_id+"&prcs_id="+prcs_id;
}
window.setTimeout('this.location.reload();',180000);
</script>
</html>